/**
 * Created by yangfakuan on 2018/10/19.
 */
(function (r, e, o) {
    var i = e.rss;
    var t = 104;
    var n = 106;
    var s = "";
    var a = localInfo.reqClientType;
    var l = localInfo.loginUserName;
    var c = localInfo.email;
    var d = localInfo.resetPasswdMode;
    var f = "";
    var u = {
        oldAccountType: "",
        oldUserAccount: "",
        oldAuthCode: "",
        newAccountType: "",
        newUserAccount: "",
        newAuthCode: ""
    };
    var p = '<div class="dbtn2 sbtn r" act="getVerificationCode"  intervaltime="60" id="getAuthCode1"><span>' + i.getAuthCode + '</span><p id="get_authcode_error_info"></p></div>';
    r(document).on("click", "#logoutAllBrowser", function () {
        if (localInfo.twoStepVerify == "1") {
            h()
        } else {
            _()
        }
    });
    function _() {
        var e = "<span>" + i.uc_logout_all_browser_content_withoutpwd + "</span>";
        var e = e + '<p id="error_info"></p>';
        r("<div/>").Dialog({
            title: i.uc_logout_all_browser,
            titleUnderline: false,
            btnRight: {
                text: i.iKnowBtn, fn: function () {
                    var r = this;
                    var e = "";
                    v(e, function () {
                        r.hide();
                        showTipDialog(i.uc_logout_all_browser_title, i.close_btn, i.uc_logout_all_browser_suc_content, function () {
                            gotoUrl(localInfo.service)
                        })
                    })
                }
            },
            btnLeft: {
                text: i.cancel_btn, fn: function () {
                }
            },
            html: e,
            beforeAction: function () {
            }
        }).Dialog("show")
    }

    function h() {
        var e = '<div style=" margin-bottom:16px;">' + i.uc_logout_all_browser_content + "</div>";
        e += '<div class="dinput-UI5" id="passwordDiv">';
        e += '<div class="ico-div"><img class="eyeoff" id="passwdEye" src="' + localInfo.eyeoff + '"/></div>';
        e += '<div class="input-div"><input  class="input-scroll" maxlength="32" type="password" oncopy="return false" oncut="return false"  autocomplete="off" id="password" placeholder="' + i.inputLingPwd + '" /></div></div><div class="error-tips-EMUI5" id="error_info"></div>';
        e += '<div class="center" style="margin-top:10px;"><a  target="_blank" class="a-EMUI5" href="' + localInfo.forgetPwdLink + '">' + i.forgetPwd + "</a></div>";
        e += "";
        r("<div/>").Dialog({
            title: i.uc_logout_all_browser,
            titleUnderline: false,
            btnRight: {
                text: i.iKnowBtn, fn: function () {
                    var e = this;
                    if (!validator(r("#password"), true)) {
                        return false
                    }
                    var o = r("#password").val();
                    v(o, function () {
                        e.hide();
                        showTipDialog(i.uc_logout_all_browser_title, i.close_btn, i.uc_logout_all_browser_suc_content, function () {
                            gotoUrl(localInfo.service)
                        })
                    })
                }
            },
            btnLeft: {
                text: i.cancel_btn, fn: function () {
                }
            },
            html: e,
            beforeAction: function () {
                var e = this;
                e.disabled();
                r("#password").on("keyup change", function () {
                    if (r("#password").val().trim() != "") {
                        e.enable();
                        return false
                    } else {
                        e.disabled()
                    }
                });
                checkPwdEye(r("#passwdEye"), r("#password"))
            }
        }).Dialog("show");
        q()
    }

    function v(e, o) {
        var t = {reqClientType: localInfo.reqClientType, password: e};
        ajaxHandler("logoutAllBrowser", t, function (e) {
            if (e && e.isSuccess == 1) {
                o()
            } else {
                var t = e.errorCode;
                r("#passwordDiv").addClass("input-error-EMUI5");
                if (t == "10000004") {
                    r("#error_info").html(i.error_10000004)
                } else if (t == "10000002") {
                    r("#error_info").html(i.error_10000002)
                } else if (t == "70002057") {
                    r("#error_info").html(i.error_70002057_2)
                } else if (t == "70002058") {
                    r("#error_info").html(i.error_70002058_1)
                } else if (t == "10002073" || t == "70002003") {
                    r("#error_info").html(i.error_10002073)
                } else {
                    r("#error_info").html(i.error_70001401)
                }
            }
        }, function () {
        }, true, "json")
    }

    function m(e) {
        var o = '<p class="inptips2" style="margin-bottom:16px">' + i.setSecOptionTip + "</p>";
        o += '<p class="inptips2" style="margin-bottom:16px;"><span id="security_email_set_droplist">' + i.verificationMode + "：" + getExpressPhone(u.oldUserAccount) + "</span></p>";
        o += '<div class="dinput-UI5 " id="inputAuthCode">';
        o += '<div class="getAuthbtn" act="getVerificationCode" id="getAuthCode1" IntervalTime="60" ><span class="getAuthText">' + i.getAuthCode + '</span><div id="get_authcode_error_info"></div></div>';
        o += '<div class="input-div"><input id="security_email_verify_input" type="hidden"><input maxlength="8" id="authCode" type="text"  placeholder="' + i.inputAuthCodeTip + '"><p id="oldAuthCode_error_info"></p></div>';
        o += "</div>";
        o += '<div id="selector_error_info"></div>' + '<div class="center"><a target="_blank" class="a-EMUI5" href="' + localInfo.representationLink + '">' + i.representation_not_receive_verification_code + "</a></div>";
        r("<div/>").Dialog({
            title: i.enter_authcode_title, btnRight: {
                text: i.next_btn, fn: function () {
                    var e = this;
                    u.oldAuthCode = r("#authCode").val();
                    if (!validator(r("#authCode"), true)) {
                        return false
                    }
                    I(u.oldAccountType, 3, u.oldUserAccount, u.oldAuthCode, 104, function () {
                        e.hide();
                        r("div").Dialog({
                            title: i.secEmailAddr,
                            btnRight: {
                                text: i.next_btn, fn: function () {
                                    var e = r("#security_email_input").val();
                                    var o = r("#authCode2").val();
                                    if (!validator(r("#security_email_input"), true)) {
                                        return false
                                    }
                                    if (!validator(r("#authCode2"), true)) {
                                        return false
                                    }
                                    var i = this;
                                    b(2, 5, e, o, function () {
                                        i.hide();
                                        setSecurityEmail(e)
                                    })
                                }
                            },
                            btnLeft: {
                                text: i.cancel_btn, fn: function () {
                                }
                            },
                            actions: {
                                getVerificationCode: function () {
                                    var e = r("#security_email_input").val();
                                    if (r("#getAuthCode1").attr("disabled")) {
                                        return false
                                    }
                                    if (!validator(r("#EmailDiv"), true)) {
                                        return false
                                    }
                                    T(1, e, 3, t, r("#getAuthCode1"))
                                }
                            },
                            beforeAction: function () {
                                var e = this;
                                e.disabled();
                                r("#authCode2").on("keyup change paste", function () {
                                    setTimeout(function () {
                                        if (r("#authCode2").val().trim() != "" && r("#security_email_input").val().trim() != "") {
                                            e.enable();
                                            return false
                                        } else {
                                            e.disabled()
                                        }
                                    }, 0)
                                });
                                r("#security_email_input").on("keyup change paste", function () {
                                    setTimeout(function () {
                                        if (r("#authCode2").val().trim() != "" && r("#security_email_input").val().trim() != "") {
                                            e.enable();
                                            return false
                                        } else {
                                            e.disabled()
                                        }
                                    }, 0)
                                })
                            },
                            html: '<div class="dinput-UI5" id="EmailDiv"><input id="security_email_input" type="text" placeholder="' + i.inputNewSecEmail + '"></div><p id="email_error_info"></p>' + '<div class="dinput-UI5 " id="inputAuthCode">' + '<div class="getAuthbtn" act="getVerificationCode" id="getAuthCode1" IntervalTime="60" ><span class="getAuthText">' + i.getAuthCode + '</span><div id="get_authcode_error_info"></div></div>' + '<div class="input-div"><input maxlength="8" id="authCode2" type="text"  placeholder="' + i.inputNewSecEmailAuthCode + '"><p id="oldAuthCode_error_info2"></p></div></div>' + '<div class="pop hidden">' + ' <b class="uptick"></b>' + "</div>"
                        }).Dialog("show");
                        k();
                        j()
                    })
                }
            }, btnLeft: {
                text: i.cancel_btn, fn: function () {
                }
            }, actions: {
                getVerificationCode: function () {
                    if (r("#getAuthCode1").attr("disabled")) {
                        return false
                    }
                    T(u.oldAccountType, u.oldUserAccount, 3, n, r("#getAuthCode1"))
                }
            }, beforeAction: function () {
                var e = this;
                e.disabled();
                r("#authCode").on("keyup change paste", function () {
                    setTimeout(function () {
                        if (r("#authCode").val().trim() != "") {
                            e.enable();
                            return false
                        } else {
                            e.disabled()
                        }
                    }, 0)
                })
            }, html: o
        }).Dialog("show");
        P()
    }

    function g(r, e) {
        var o = r.find("[act='getVerificationCode']");
        var i = o.attr("disabled");
        if (i) {
            return false
        }
        o.addClass("auth_code_grey");
        jsInnerTimeout(o, e);
        return true
    }

    function w() {
        y(l, function (r) {
            if (r.isSuccess == 1) {
                C(r)
            }
        })
    }

    function C(r) {
        userAcctInfoData = r;
        u.oldAccountType = r.userAcctInfoList[0].accountType;
        u.oldUserAccount = r.userAcctInfoList[0].userAccount
    }

    function y(e, o) {
        var t = {userAccount: e, reqClientType: a, operType: 3};
        ajaxHandler("getUserAccInfoBySession", t, function (e) {
            if (e && e.isSuccess == 1) {
                o(e)
            } else {
                if (errorCode == "10000001") {
                    showError(r("#setSecurityOption"), i.error_10000001_3)
                } else if (errorCode == "10000004") {
                    showError(r("#setSecurityOption"), i.error_10000004)
                } else if (errorCode == "10000002") {
                    showError(r("#setSecurityOption"), i.error_10000002)
                } else {
                    showError(r("#setSecurityOption"), i.login_wrong)
                }
            }
        }, function () {
        }, true, "json")
    }

    function b(e, o, t, n, s) {
        var l = {
            opType: e,
            oldAccountType: u.oldAccountType,
            oldUserAccount: u.oldUserAccount,
            oldAuthCode: u.oldAuthCode.trim(),
            newAccountType: o,
            newUserAccount: t,
            newAuthCode: n.trim(),
            reqClientType: a,
            password: f
        };
        ajaxHandler("setPhoneEmail", l, function (e) {
            if (e && e.isSuccess == 1) {
                if (typeof s == "function") {
                    s()
                }
            } else {
                if (e.errorCode == "70001201" || e.errorCode == "10000001") {
                    showError(r(".errortip"), i.error_70001201_1)
                } else if (e.errorCode == "70001401") {
                    showError(r(".errortip"), i.error_70001401)
                } else if (e.errorCode == "70002001") {
                    showError(r(".errortip"), i.error_70002001)
                } else if (e.errorCode == "70002055") {
                    showError(r(".errortip"), i.error_70002055)
                } else if (e.errorCode == "70006006") {
                    showError(r(".errortip"), i.error_70006006)
                } else if (e.errorCode == "70002002") {
                    showError(r(".errortip"), i.error_70002002)
                } else if (e.errorCode == "70002003") {
                    showError(r(".errortip"), i.error_70002003)
                } else if (e.errorCode == "70002057") {
                    showError(r(".errortip"), i.error_70002057_0)
                } else if (e.errorCode == "70002058") {
                    showError(r(".errortip"), i.error_70002058)
                } else if (e.errorCode == "70002039") {
                    showError(r(".errortip"), i.error_70002039)
                } else if (e.errorCode == "70002016") {
                    showError(r(".errortip"), i.error_70002016_1)
                } else if (e.errorCode == "10000002") {
                    showError(r(".errortip"), i.error_10000002)
                } else if (e.errorCode == "70006007") {
                    showError(r(".errortip"), i.error_70006007_1)
                } else if (e.errorCode == "10000004") {
                    showError(r(".errortip"), i.error_10000004)
                } else {
                    showError(r(".errortip"), i.setSecAccountFailed)
                }
            }
        }, function () {
        }, false, "json")
    }

    function E(r, e, o, t, n) {
        var s = "verifyPassword";
        var a = "";
        a = {"userAccount": e, "accountType": o, "password": t, "reqClientType": localInfo.reqClientType};
        ajaxHandler(s, a, function (e) {
            var o = e.isSuccess;
            if (o == "1") {
                n()
            } else {
                var t = e.errorCode;
                if (t == "70002003") {
                    showError(r, i.error_10000001_2)
                } else if (t == "10002073") {
                    showError(r, i.error_10002073)
                } else if (t == "70002057") {
                    showError(r, i.error_70002057_2)
                } else if (t == "70002058") {
                    showError(r, i.error_70002058_1)
                } else if (t == "10000001") {
                    showError(r, i.error_10000001_2)
                } else {
                    showError(r, i.error_70002003)
                }
            }
        }, function () {
        }, false, "json")
    }

    if (c == "") {
        c = i.modifyUserInfo_no_bind
    }
    if (localInfo.securityEmail == "") {
        localInfo.securityEmail = i.modifyUserInfo_no_bind
    }
    if (localInfo.phone == "") {
        localInfo.phone = i.modifyUserInfo_no_bind
    }
    if (localInfo.securityPhone == "") {
        localInfo.securityPhone = i.modifyUserInfo_no_bind
    }
    if (localInfo.email == "") {
        localInfo.email = i.modifyUserInfo_no_bind
    }
    if (localInfo.securityEmail == "") {
        localInfo.securityEmail = i.modifyUserInfo_no_bind
    }
    var A = "<span>" + i.mailAndPhoneTip + "</span><br><span>" + i.phoneNumberColonSpace + "<span class='ar-eg'>" + getExpressPhone(localInfo.phone) + "</span>" + "</span><br><span>" + i.secPhoneColonSpace + "<span class='ar-eg'>" + getExpressPhone(localInfo.securityPhone) + "</span>" + "</span><br><span>" + i.mail_addr_colon_space + "<span class='ar-eg'>" + localInfo.email + "</span>" + "</span><br><span>" + i.secEmailAddr_colon_space + "<span class='ar-eg'>" + localInfo.securityEmail + "</span>" + "</span><br><p id='error_info'></p>";

    function T(e, o, t, s, l) {
        var c = {};
        var d = "";
        var f = 0;
        if (s == n) {
            f = 1
        }
        l.attr("disabled");
        var u = {
            10000003: rss_new.uc_error_10000001,
            70001201: rss_new.uc_error_10000001,
            "default": rss_new.uc_common_get_auth_code_error
        };
        if (e == 1 || e == 5) {
            c = {
                email: o,
                accountType: e,
                emailReqType: t,
                reqClientType: a,
                operType: s,
                languageCode: localInfo.lang,
                newEMailFlag: f
            };
            u["70001102"] = rss_new.uc_error_70001102_0;
            u["70001104"] = rss_new.uc_error_70001104_0;
            casAjaxObj.getEMailAuthCodeBySession(c, p, _, u)
        } else if (e == 2 || e == 6) {
            c = {
                accountType: e,
                userAccount: o,
                reqClientType: a,
                mobilePhone: o,
                smsReqType: t,
                operType: s,
                languageCode: localInfo.lang
            };
            u["70001102"] = rss_new.uc_error_70001102_1;
            u["70001104"] = rss_new.uc_error_70001104_1;
            casAjaxObj.getSMSAuthCodeBySession(c, p, _, u)
        }
        function p() {
            l.attr("disabled");
            if (e == 2 || e == 6) {
                showSuccess(r("#get_authcode_error_info"), i.phoneMegHasSendTo.format(getExpressPhone(o)), "right", -1, 30)
            } else if (e == 1 || e == 5) {
                showSuccess(r("#get_authcode_error_info"), i.emialHasSendTo.format(o), "right", -1, 30);
                r(".userAccount").html(o)
            }
            l.addClass("auth_code_grey");
            jsInnerTimeout(l, i.resend)
        }

        function _(e, o) {
            l.removeAttr("disabled");
            var i = o.errorCode;
            if ("70001104" == i) {
                showError(r("#get_authcode_error_info"), e, "left")
            } else {
                showError(r("#get_authcode_error_info"), e)
            }
        }
    }

    function I(e, o, i, t, n, s) {
        var l = {accountType: e, userAccount: i, authCode: t.trim(), authOprType: o, reqClientType: a, operType: n};
        var c = {70001201: rss_new.uc_error_10000001, "default": rss_new.common_wrong_authcode};
        casAjaxObj.chkAuthCodeBySession(l, d, f, c);
        function d() {
            s()
        }

        function f(e) {
            showError(r("#oldAuthCode_error_info"), e)
        }
    }

    r(document).on("click", "#twoVerifyBtn", function (e) {
        if (r(this).hasClass("accountProtectOpen"))return;
        e.stopPropagation();
        var o = r(this);
        var i = o.attr("opType");
        x(o, o, 1)
    });
    function x(e, o, t, n) {
        var a = {opType: t, reqClientType: localInfo.reqClientType};
        ajaxHandler("setAcctProtect", a, function (n) {
            if ("1" == n.isSuccess) {
                e.addClass("on");
                e.attr("opType", t);
                if (t == 1) {
                    s = "1";
                    localInfo.twoStepVerify = "1"
                } else if (t == 3) {
                    localInfo.loginDeviceFlag = 3
                } else if (t == 5) {
                    localInfo.loginWebFlag = 5
                }
                r("#twoVerifyBtn").removeClass("btn");
                r("#twoVerifyBtn").addClass("accountProtectOpen");
                r("#twoVerifyBtn").html(i.already_open_account_protect);
                wapToast(i.account_protect_set_successfully)
            } else {
                var a = n.errorCode;
                if (a == "10000701") {
                    if (t != 1)return;
                    r("<div/>").Dialog({
                        title: i.hint,
                        btnRight: {
                            text: i.ok, fn: function () {
                                this.hide();
                                r("<div/>").Dialog({
                                    title: i.userAgreement,
                                    btnRight: {
                                        text: i.next_btn, fn: function () {
                                            this.hide()
                                        }
                                    },
                                    btnLeft: {
                                        text: i.cancel_btn, fn: function () {
                                        }
                                    },
                                    html: '<div class="dcent"><div class="line protocol"><p class="inptips6 mbottom">' + i.privacyPolicy + '：<a class="more" href="">' + i.moreDetails + '</a></p><p class="inptips2">' + i.privacyPolicyTip1 + '</p><p class="inptips2 mtop"><b data-value="true" class="tick"></b>' + i.IAgree + '</p></div><div class="line protocol">\t<p class="inptips6 mbottom">' + i.userLicense + '：<a class="more" href="">' + i.moreDetails + '</a></p>\t<p class="inptips2">' + i.privacyPolicyTip2 + '</p>\t<p class="inptips2 mtop"><b data-value="true" class="tick"></b>' + i.IAgree + "</p></div>\t</div>"
                                }).Dialog("show")
                            }
                        },
                        btnLeft: {
                            text: i.cancel_btn, fn: function () {
                            }
                        },
                        html: '<div class="center"><span class="inptips2">' + i.perfectInformationTip + "</span></div>"
                    }).Dialog("show")
                } else if (a == "10000702") {
                    if (t != 1)return;
                    r("<div>").Dialog({
                        title: i.hint, btnRight: {
                            text: i.nowVerify, fn: function () {
                                this.hide();
                                D(localInfo.userAccount, localInfo.reqClientType)
                            }
                        }, btnLeft: {
                            text: i.cancel_btn, fn: function () {
                            }
                        }, html: '<div class="center">' + '<p class="inptips2">' + i.unverifiedTip + "</p></div>"
                    }).Dialog("show")
                } else if (a == "10000703") {
                    if (t != 1)return;
                    r("<div>").Dialog({
                        title: i.hint,
                        btnRight: {
                            text: i.IGetIt, fn: function () {
                                this.hide()
                            }
                        },
                        btnLeft: false,
                        html: '<div class="center">' + '<p class="inptips2">' + i.setSecOptionTip2 + "</p></div>"
                    }).Dialog("show")
                } else if (a == "70002003") {
                    showError(o, i.error_70002003)
                } else if (a == "70008800") {
                    showSystemError(i.error_risk_70008800, i.iKnowBtn)
                } else {
                    showError(o, i.systemBusy)
                }
            }
        }, function (r) {
        }, false, "JSON")
    }

    function S(e, o) {
        var t = {accountType: 1, userAccount: e, reqClientType: o, email: e, languageCode: localInfo.lang};
        casAjaxObj.getActivateEMailURLBySessionFn(t, function (e) {
            if (e && e.isSuccess == 1) {
                callback(e)
            } else {
                if (e.errorCode == "10000001" || e.errorCode == "70001201") {
                    showError(r("#error_info"), i.error_10000001)
                }
                if (e.errorCode == "10000002") {
                    showError(r("#error_info"), i.error_10000002)
                }
                if (e.errorCode == "10000004") {
                    showError(r("#error_info"), i.error_10000004)
                }
                if (e.errorCode == "70002001") {
                    showError(r("#error_info"), i.error_70002001)
                }
                if (e.errorCode == "70001401") {
                    showError(r("#error_info"), i.error_70001401)
                }
                if (e.errorCode == "70002008") {
                    showError(r("#error_info"), i.error_70002008)
                }
                if (e.errorCode == "70001102") {
                    showError(r("#error_info"), i.error_70001102_2)
                }
                if (e.errorCode == "70001104") {
                    showError(r("#error_info"), i.error_70001104_3)
                }
                if (e.errorCode == "70002019") {
                    showError(r("#error_info"), i.error_70002019)
                }
                if (e.errorCode == "70002009") {
                    showError(r("#error_info"), i.error_70002009)
                } else {
                    showError(r("#error_info"), i.emailActivedFailed)
                }
            }
        })
    }

    function U(r) {
        var e = false;
        getAccountInfo(r, 1, function (r) {
            if (r && r.isSuccess == 1) {
                var o = r.userAcctInfoList;
                for (var i = 0; i < o.length; i++) {
                    var t = o[i];
                    if ((t.accountType == 1 || t.accountType == 2) && t.accountState == 1) {
                        e = true;
                        break
                    }
                }
            }
        });
        return e
    }

    function D(o, t) {
        var n = {accountType: 1, userAccount: o, reqClientType: t, email: o, languageCode: localInfo.lang};
        casAjaxObj.getActivateEMailURLBySessionFn(n, function (n) {
            var s = n.isSuccess;
            if (s == "1") {
                r("<div/>").Dialog({
                    title: i.varityEmailAddr,
                    btnRight: {
                        text: i.verified, fn: function () {
                            if (U(o)) {
                                e.location.reload()
                            } else {
                                showError(r(".errortip"), i.verifiedUnfinished)
                            }
                        }
                    },
                    btnLeft: {
                        text: i.cancel_btn, fn: function () {
                        }
                    },
                    html: '<div class="etbar mkcl">\t<img class="emcheckimg l" src="' + localInfo.emailCheckPng + '">\t<p class="inptips5 mbottom">' + i.verifyEmailSendToOther.format(l) + '</p>\t<p class="inptips1">' + i.verifyEmailTip1 + '</p>\t<div class="midbtn"></div></div><div class="line">\t<div class="ebbar"><p class="inptips1">' + i.verifyEmailTip2 + '</p><p class="inptips4">' + i.verityEmailTip3 + '</p><p class="inptips4">' + i.verityEmailTip4 + '</p><p class="inptips4">' + i.verityEmailTip5 + '</p><p class="inptips4">' + i.verityEmailTip6 + '<a class="resend" href="" act="action">' + i.resend + '</a></p></div></div><p id="error_info"></p>',
                    actions: {
                        "action": function () {
                            S(o, t)
                        }
                    }
                }).Dialog("show")
            } else {
                if (n.errorCode == "10000001" || n.errorCode == "70001201") {
                    showError(r("#error_info"), i.error_10000001)
                }
                if (n.errorCode == "10000002") {
                    showError(r("#error_info"), i.error_10000002)
                }
                if (n.errorCode == "10000004") {
                    showError(r("#error_info"), i.error_10000004)
                }
                if (n.errorCode == "70002001") {
                    showError(r("#error_info"), i.error_70002001)
                }
                if (n.errorCode == "70001401") {
                    showError(r("#error_info"), i.error_70001401)
                }
                if (n.errorCode == "70002008") {
                    showError(r("#error_info"), i.error_70002008)
                }
                if (n.errorCode == "70001102") {
                    showError(r("#error_info"), i.error_70001102_2)
                }
                if (n.errorCode == "70001104") {
                    showError(r("#error_info"), i.error_70001104_3)
                }
                if (n.errorCode == "70002019") {
                    showError(r("#error_info"), i.error_70002019)
                }
                if (n.errorCode == "70002009") {
                    showError(r("#error_info"), i.error_70002009)
                } else {
                    showError(r("#error_info"), i.emailActivedFailed)
                }
            }
        })
    }

    function q() {
        var e = r("#password");
        validator.bind(e, {
            type: ["require"],
            trim: false,
            validOnChange: true,
            min: 6,
            max: 32,
            msg_ct: "#error_info",
            msg: {require: i.js_inputpwd},
            successFunction: function (r) {
            },
            errorFunction: function (e) {
                r("#passwordDiv").addClass("input-error-EMUI5");
                r("#error_info").html(i.js_inputpwd)
            },
            reInputFunction: function () {
                r("#passwordDiv").removeClass("input-error-EMUI5");
                r("#error_info").html("")
            }
        })
    }

    function P() {
        var e = r("#authCode");
        validator.bind(e, {
            type: ["require", "length", "int"],
            trim: true,
            min: 4,
            max: 8,
            validOnChange: true,
            msg_ct: "#oldAuthCode_error_info",
            msg: {require: i.inputAuthCodeTip, length: i.authCodeLength, int: i.authCodeLength}
        })
    }

    function j() {
        var e = r("#authCode2");
        validator.bind(e, {
            type: ["require", "length", "int"],
            trim: true,
            min: 4,
            max: 8,
            validOnChange: true,
            msg_ct: "#oldAuthCode_error_info2",
            msg: {require: i.inputAuthCodeTip, length: i.authCodeLength, int: i.authCodeLength}
        })
    }

    function k() {
        var e = r("#security_email_input");
        validator.bind(e, {
            type: ["require", "email"],
            trim: true,
            validOnChange: true,
            msg_ct: "#email_error_info",
            msg: {require: "<span>" + i.inputEmailAddr + "</span>", email: "<span>" + i.validatorEmail + "</span>"}
        })
    }
})(jQuery, window);